{% extends 'base_course.html' %}
{% block subtitle %}
  {# I18N: Title of the course progress webpage. #}
  {{ gettext('Course Progress') }}
{% endblock subtitle %}
{% block top_content %}{% endblock %}
{% block main_content %}
<div id="gcb-profile" class="blue">
  <div class="gcb-article tab-content">
    <div class="gcb-aside">
      <h2>
        {# I18N: Title of the student progress page.#}
        {{ gettext('Student Progress') }}
      </h2>
      {% if student %}
        {% include 'student_data_table.html' %}
        {% if can_edit_name %}
            <h2>
            {# I18N: Shown on the student profile page. #}
            {{ gettext('To leave the course permanently, click on Unenroll') }}
            </h2>
            
            <p>
            <a role="button" href="student/unenroll" class="gcb-button">
                {# I18N: Button that allows the student to unenroll from a course. #}
                {{ gettext('Unenroll') }}
            </a>
            </p>

        {% elif false %}
            <p>
            <a href="/explorer/profile">
                {# I18N: Text shown on progress page of course to redirect student to profile page. #}
                {{ gettext('Manage course registration from your profile') }}
            </a>
            </p>
        {% endif %}
      {% else %}
        {# I18N: Shown when the student profile cannot be found in the database. #}
        <p>{{ gettext('Student profile not found ...')}}</p>
      {% endif %}
    </div>
  </div>
</div>
{% endblock %}